﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<link rel="Bookmark" href="../imgs/favicon.ico"/>
	<link rel="Shortcut Icon" href="../imgs/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css"/>
	<title>商城</title>
	<style type="text/css">
	</style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--首页-->
<section class="Hui-article-box">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>
		<a href="../index.html" class="maincolor">首页</a>
		<span class="c-gray en">&gt;</span> 渠道管理
		<span class="c-gray en">&gt;</span> 收货地址
	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="cl pd-5 bg-1 bk-gray">
				<!--<span class="l">-->
					<!--<a href="order.html" class="btn btn-primary radius">-->
						<!--所有订单-->
					<!--</a>-->
					<!--<a href="order.html?status=1" class="btn btn-primary radius">-->
						<!--未付款-->
					<!--</a>-->
					<!--<a href="order.html?status=3" class="btn btn-primary radius">-->
						<!--未发货-->
					<!--</a>-->
				<!--</span>-->
				<!--<span class="text-c" style="margin-left: 20px;">-->
					<!--<input type="text" class="input-text" placeholder="搜索订单号" style="width: 150px;" id="keyword"/>-->
					<!--<button class="btn btn-success" onclick="getList();">-->
						<!--<i class="Hui-iconfont">&#xe665;</i> 搜索-->
					<!--</button>-->
				<!--</span>-->
				<span class="r">共有数据：<strong id="pageTotal">0</strong> 条</span>
			</div>
			<div class="mt-10">
				<table class="table table-border table-bordered table-hover table-bg">
					<thead>
					<tr>
						<th scope="col" colspan="20">订单列表</th>
					</tr>
					<tr class="text-c">
						<th>渠道商</th>
						<th>用户名</th>
						<th>收件人名称</th>
						<th>收件人手机号</th>
						<th>收件人地址</th>
					</tr>
					</thead>
					<tbody>
					<tr class="text-c">
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
					</tr>
					</tbody>
				</table>
				<div id="pageHtml"></div>
			</div>
		</article>
	</div>
</section>

<!--自定义弹窗-->
<span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="../js/config.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript">
	var formArys = [];
	var pages = {
		start: 1, limit: pageSize, total: 0,
		url: '/admin/qudao/acceppt.html'
	};
	pages.start = getParamByUrl('start');
	pages.start = pages.start ? pages.start : 1;
	(function () {
		getList();
	})();
	function getList(){
		$.ajax({
			type: apis.qdAcceptIndex.method,
			url: apis.qdAcceptIndex.url,
			data: {},
			success: function (res) {
				console.log(res);
				var h = '', i, tbody = $('tbody');
				if (res.code < 0) {
					h = '<tr class="text-c">';
					h += '<td colspan="10">没有记录</td>';
					h += '</tr>';
					tbody.html(h);
					return
				}
				var d = res.data;
				for (i = 0; i < d.length; i ++) {
					h += '<tr class="text-c">';
					h += '<td>' + d[i].uname + '</td>';
					h += '<td>' + d[i].accepter + '</td>';
					h += '<td>' + d[i].phone + '</td>';
					h += '<td>' + d[i].wx_name + '</td>';
					h += '<td>' + d[i].uptime + '</td>';
					h += '</tr>';
				}
				tbody.html(h);
				$('#pageTotal').html(res.data);
			},
			error: function () {
				console.log('错误辣');
			}
		});
	}
</script>